package com.pjedu.nbmallshop.service;


import com.pjedu.nbmallcommon.utils.PageResult;
import com.pjedu.nbmallshop.entity.MallIndexConfig;
import com.pjedu.nbmallshop.vo.MallIndexConfigGoodsVO;

import java.util.HashMap;
import java.util.List;

public interface MallIndexConfigService {
    /**
     * 后台分页
     *
     * @param pageUtil
     * @return
     */
    PageResult getConfigsPage(HashMap pageUtil);

    String saveIndexConfig(MallIndexConfig indexConfig);

    String updateIndexConfig(MallIndexConfig indexConfig);

    MallIndexConfig getIndexConfigById(Long id);

    /**
     * 返回固定数量的首页配置商品对象(首页调用)
     *
     * @param number
     * @return
     */
    List<MallIndexConfigGoodsVO> getConfigGoodsesForIndex(int configType, int number);

    Boolean deleteBatch(Long[] ids);
}
